package itBean;
/*
定义一个总裁类，有名称、性别、年龄、身价、公司是否上市等属性，请为这些属性定义setter与getter方法
 */
public class boss {
    private String name;
    private String sex;
    private int age;
    private double networth;
    private boolean isCompanyPublic;

        public boss(String name,String sex,int age,double networth,boolean isCompanyPublic){
            this.name=name;
            this.sex=sex;
            this.age=age;
            this.networth=networth;
            this.isCompanyPublic=isCompanyPublic;
        }
        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }

        public String getSex() {
            return sex;
        }
        public void setSex(String sex) {
            this.sex = sex;
        }

        public int getAge() {
            return age;
        }
        public void setAge(int age) {
            this.age = age;
        }

        public double getNetworth() {
            return networth;
        }
        public void setNetworth(double networth) {
            this.networth = networth;
        }

        public boolean getCompanyPublic() {
            return isCompanyPublic;
        }
        public void setCompanyPublic(boolean isCompanyPublic) {
            this.isCompanyPublic = isCompanyPublic;
        }
}
